#ifndef WAY_H
#define WAY_H

#include "mapelement.h"
#include "node.h"
#include <QList>

class Way : public MapElement
{
private:
    quint64 id;
    QList<Node *> nodes;
public:
    Way(quint64 id);
    virtual ~Way();
    quint64 getId() const;
    bool isEmpty() const;
    bool isClosed() const;
    void addNode(Node *node);
    const QList<Node *> & getNodes() const;
};

#endif // WAY_H
